package com.woniu.cq.mallcommon.config;


import com.woniu.cq.ribbon.RibbonConfig;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.netflix.ribbon.RibbonClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @author pl727
 */
@Configuration
@RibbonClients(defaultConfiguration = RibbonConfig.class)
//@RibbonClient(name = "cloud-user",configuration = "")
public class RestConfig {
    @Bean
    @LoadBalanced
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
}
